package LY;


public class Seaplane extends Airplane2 implements Swimmer{
    public Seaplane(String name){
        super(name);
    }

    @Override
    public void fly(){
        System.out.print("海上");
        super.fly();
    }

    @Override
    public void swim(){
        System.out.printf("海上飞机 %s 航行海面%n",name);
    }
}
